package com.key.mapper;

import com.key.common.dto.AssetChangeAdvDTO;
import com.key.common.dto.AssetChangeDTO;
import com.key.common.vo.ChangeAssetsListVO;
import com.key.entity.AssetChange;

import java.util.List;
import java.util.Map;

/*
*
 * @description:实物信息变更Mapper
 * @author: jianjiawei
 * @date: 2023/2/20 10:48
 **/
public interface AssetChangeMapper {

    /*
    *
     * @description:查询最后一条变更信息
     * @author: jianjiawei
     * @date: 2023/2/20 10:56
     **/
    AssetChange selectLastOne();

    /*
    *
     * @description:创建新的实物信息变更清单
     * @author: jianjiawei
     * @date: 2023/2/20 15:56
     **/
    int InsertAssetChange(AssetChange assetChange);

    /*
    *
     * @description:查询所有实物信息变更
     * @author: jianjiawei
     * @date: 2023/2/20 15:57
     **/
    List<AssetChange> selectAssetChangeList();

    /*
    *
     * @description:根据ID查询实物信息变更列表
     * @author: jianjiawei
     * @date: 2023/2/20 16:09
     **/
    AssetChange selectAssetChangeById(Integer id);

    /*
    *
     * @description:根据变更单号查询
     * @author: jianjiawei
     * @date: 2023/2/27 9:49
     **/
    AssetChange selectAssetChangeByChangeNo(String changeNo);

    /*
    *
     * @description:实物信息变更中修改保存
     * @author: jianjiawei
     * @date: 2023/2/20 18:27
     **/
    int updateAssetChangeSave(AssetChangeDTO acDTO);

    /*
    *
     * @description:修改对应的资产信息
     * @author: jianjiawei
     * @date: 2023/2/20 19:23
     **/
    int updateAssetsByChange(Map map);

    /*
    *
     * @description:根据ID删除实物变更信息
     * @author: jianjiawei
     * @date: 2023/2/21 8:46
     **/
    int deleteAssetChangeById(Integer id);

    /*
    *
     * @description:根据高级搜索查询实物变更信息
     * @author: jianjiawei
     * @date: 2023/2/21 10:15
     **/
    List<AssetChange> selectAssetChangeByAdv(AssetChangeAdvDTO advDTO);

    /*
    *
     * @description:根据ID查询资产对象
     * @author: jianjiawei
     * @date: 2023/2/21 14:40
     **/
    ChangeAssetsListVO selectAssetsById(Long id);

    /*
    *
     * @description:查询所属公司
     * @author: jianjiawei
     * @date: 2023/2/27 10:10
     **/
    String getAssetsAdmin(Long assetsId);




}
